package com.wolf.service.impl;

import com.wolf.pojo.Wl_commodity_inventory_record;
import com.wolf.repository.Wl_commodity_inventory_recordMapper;
import com.wolf.service.Wl_commodity_inventory_recordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_commodity_inventory_recordServiceImpl implements Wl_commodity_inventory_recordService {

    @Autowired
    private Wl_commodity_inventory_recordMapper wl_commodity_inventory_recordMapper;

    public void setWl_commodity_inventory_recordMapper(Wl_commodity_inventory_recordMapper wl_commodity_inventory_recordMapper) {
        this.wl_commodity_inventory_recordMapper = wl_commodity_inventory_recordMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_commodity_inventory_recordMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_commodity_inventory_record record) {
        return wl_commodity_inventory_recordMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_commodity_inventory_record record) {
        return wl_commodity_inventory_recordMapper.insertSelective(record);
    }

    @Override
    public Wl_commodity_inventory_record selectByPrimaryKey(String id) {
        return wl_commodity_inventory_recordMapper.selectByPrimaryKey(id);
    }


    @Override
    public int updateByPrimaryKeySelective(Wl_commodity_inventory_record record) {
        return wl_commodity_inventory_recordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_commodity_inventory_record record) {
        return wl_commodity_inventory_recordMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_commodity_inventory_record> getAll() {
        return wl_commodity_inventory_recordMapper.getAll();
    }

    @Override
    public List<Wl_commodity_inventory_record> getSelective(String commodityname, String property, Integer istatus, Integer rstatus, Integer month) {
        return wl_commodity_inventory_recordMapper.getSelective(commodityname,property,istatus,rstatus,month);
    }
}
